/*
 * Copyright (C) 2004 Timo Westkämper This program is free software; you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FIT- NESS FOR A PARTICULAR PURPOSE. See
 * the GNU General Public License for more details. You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 * 02111-1307, USA.
 */

package net.sf.javadc.mockups;

import java.util.ArrayList;
import java.util.List;

import net.sf.javadc.interfaces.IHubInfo;
import net.sf.javadc.net.hub.AbstractHubList;
import net.sf.javadc.net.hub.HostInfo;
import net.sf.javadc.net.hub.HubInfo;

/**
 * @author Timo Westkämper To change the template for this generated type comment go to
 *         Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class BaseHubList
    extends AbstractHubList
{

    private String[] names = { "SuperHub", "My Hub", "Movies Hub", "HubHub", "Hubbard" };

    /*
     * (non-Javadoc)
     * 
     * @see net.sf.javadc.interfaces.IHubList#getHubInfos()
     */
    @Override
    public List getHubInfos()
    {
        List hubInfos = new ArrayList();

        for ( int i = 0; i < 5; i++ )
        {
            IHubInfo hubInfo = new HubInfo();

            hubInfo.setName( names[i] );
            hubInfo.setDescription( names[i] + " (desc.)" );
            hubInfo.setUserCount( i ^ 2 );
            hubInfo.setAddress( new HostInfo( "hub.com/" + (i + 1) ) );

            hubInfos.add( hubInfo );
        }

        return hubInfos;

    }

}